package vow.gui.models;

import java.util.List;

import javax.swing.AbstractListModel;

import ontology.models.contract.Obligation;

public class ObligationsListModel extends AbstractListModel{

	private List<Obligation> obligations;
	
	public ObligationsListModel(List<Obligation> obligations){
		this.obligations = obligations;
	}
	
	@Override
	public Object getElementAt(int index) {
		return obligations.get(index);
	}

	@Override
	public int getSize() {
		return obligations.size();
	}
	
}